using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

using System.IO;

public partial class Reporte_GMapsFotos : PageController
{
    private string idUsuario;
    private string fechaMovil;



    protected override void initialize()
    {

        idUsuario = "" + Request.QueryString["usuario"].ToString().Trim();
        fechaMovil = "" + Request.QueryString["fecha"].ToString().Trim();
        //estado = "" + Request.QueryString["fecha"].ToString().Trim();

        try
        {            
//            List<FotoDato> loLista = DBNet.reporteTrackingObtenerFotos(idUsuario, fechaMovil);
            List<FotoDato> loLista = null;

            if (loLista.Count > 0) {

                int numcells = 1;
                for (int j = 0; j < loLista.Count; j++)
                {
                    TableRow r = new TableRow();
                    String IdFoto = loLista[j].IdFoto.ToString();
                    Image foto = new Image();
                    
                    foto.ImageUrl = "Imagen.aspx?IdFoto=" + IdFoto;
                    foto.Width = 100;
                    foto.Height = 100;

                    for (int i = 0; i < numcells; i++)
                    {
                        TableCell c = new TableCell();
                        c.Controls.Add(foto);
                        //c.Controls.Add(new LiteralControl("<br/>"));
                        //c.Controls.Add(new LiteralControl("<b>FOTO " + (j + 1).ToString() + "</b>"));
                        //c.Controls.Add(new LiteralControl("<br/><br/>"));
                        r.Cells.Add(c);
                    }
                    Table1.Rows.Add(r);
                }

            }
        }
        catch (Exception ex)
        {            
            throw ex;
        }

    }
}
